<template>
	<view class="pc_login_box">
		<uni-nav-bar :fixed="true" status-bar :border="false" left-icon="left" title="登录电脑版" @clickLeft="back" />
		<image class="img" src="../../static/31.png" mode="scaleToFill"></image>
		<view class="text">
			锐行抽奖
		</view>
		<view class="text2">

		</view>
		<view class="text3_box" @click="copyText">
			<view class="text1 text2">
				登录电脑版方法
			</view>
			<view class="text1">
				1.使用电脑百度搜索以下网址：{{imgPath}}/#/
			</view>
			<view class="click_text">
				（可点击复制官网网址）
			</view>
			<view class="text2_2">
				2.进入官网
			</view>
			<view class="text3">
				3.使用账号密码登录
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				imgPath: uni.imgPath,
				textToCopy: `${uni.imgPath}/#/`
			};
		},
		methods: {
			back() {
				uni.navigateBack();
			},
			copyText() {
				wx.setClipboardData({
					data: this.textToCopy,
					success: function() {
						uni.showToast({
							title: '复制成功',
							icon: 'success'
						});
					},
					fail: function() {
						uni.showToast({
							title: '复制失败',
							icon: 'none'
						});
					}
				});
			},

		}
	}
</script>

<style lang="scss">
	.pc_login_box {
		position: relative;
		width: 100%;
		height: 100vh;

		.img {
			position: absolute;
			top: 40%;
			left: 50%;
			transform: translate(-50%, -50%);
			width: 230rpx;
			height: 230rpx;
		}

		.text {
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
			font-size: 32rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #333333;
		}



		.text3_box {
			position: absolute;
			top: 70%;
			left: 50%;
			transform: translate(-50%, -50%);
			width: 500rpx;
			min-height: 160rpx;

			.text2 {
				text-align: center;
				font-size: 32rpx;
				font-family: PingFang SC-Medium, PingFang SC;
				font-weight: 500;
				color: #7EBCFF;
			}

			.text1 {
				text-align: center;
				width: 100%;
				padding: 10rpx 0;
			}

			.click_text {
				text-align: center;
				width: 100%;
				padding-left: 15rpx;
				font-size: 28rpx;
				color: #999999;
			}

			.text2_2 {
				text-align: center;
				width: 100%;
				padding: 10rpx 0;
			}

			.text3 {
				text-align: center;
				width: 100%;
				padding: 10rpx 0;
			}
		}
	}
</style>